<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>堆叠</title>
    <style>
      .d1,.d2,.d3{
        width: 100px;
        height: 100px;
        background-color: #12FA62;
        position: absolute;
        left: 10px;
      }
      .d1{z-index: 10;}
      .d2{background-color: orange}
      .d3{background-color: purple;left: 80px}
    </style>
</head>
<body>
<div class="d1"></div>
<div class="d2"></div>
<div class="d3"></div>
</body>
</html>